<template>
  <div>
    <div>path参数:</div>
    <div>id: {{ id }}</div>
    <div>query参数:</div>
    <div>{{ queryParams }}</div>
  </div>
</template>

<script setup lang="ts">
const $route = useRoute();
const { id } = $route.params;
const queryParams = $route.query;
</script>

<style scoped></style>
